home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / sys / amiga / misc-part2 / 12562 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  18.8 KB

  1. Path: newsreader.wustl.edu!wuarchive!not-for-mail
  2. From: umueller@amiga.icu.net.ch (FTP Admin)
  3. Newsgroups: comp.sys.amiga.misc,comp.sys.amiga.introduction,comp.sys.amiga.datacomm
  4. Subject: FAQ: All about Amiga FTP
  5. Date: 15 Apr 1996 00:01:03 -0500
  6. Organization: Washington University in Saint Louis, MO
  7. Sender: umueller@wuarchive.wustl.edu
  8. Expires: 28 Apr 96 10:00:00 GMT
  9. Message-ID: <4ksl6f$55o@wuarchive.wustl.edu>
  10. NNTP-Posting-Host: @wuarchive.wustl.edu
  11.  
  12. Ladt update: Dec 95
  13.   - GUI FTP clients mentioned (Chapter 1)
  14.   - New FTP site list (Chapter 3)
  15.  
  16.  
  17. 0. Contents
  18. ===========
  19. 1. Introduction
  20. 2. FTP command list
  21. 3. Important sites
  22. 4. A Sample Session
  23. 5. The .netrc File
  24. 6. Archivers
  25. 7. The Archie Database
  26. 8. Mailservers
  27. 9. Transferring to Amiga
  28.  
  29.  
  30.  
  31. 1. Introduction
  32. ===============
  33.  
  34. FTP stands for File Transfer Protocol.  The program with the same name,
  35. 'ftp', allows you to gain access to some other machines and store and/or
  36. retrieve files.  If you have a computer with a connection to the Internet,
  37. and a program called 'ftp' on that computer, you're almost done. There
  38. are some other 'ftp' programs ('WS-FTP' on the PC, 'NCSA telnet' and
  39. 'fetch' on the Mac and 'GUI-FTP' on the Amiga). If you have none of 
  40. these, you have to get the files by mail:  see the section 'Mailservers',
  41. below.
  42.  
  43. In this document, we refer to two computers:
  44.  
  45. o    The 'local machine' is the computer that you are physically logged
  46.     in on.
  47.  
  48. o    The 'remote machine' is the computer that you are contacting via
  49.     your local machine.  It might be right next door, or thousands of
  50.     kilometers away!  Using 'ftp', you can transfer files from the
  51.     remote machine to your local machine, or from your local machine to
  52.     the remote machine.
  53.  
  54. Normally, one needs an account on a remote machine to use it.  However, a
  55. number of machines on the Internet allow anybody to log in as the user 'ftp'
  56. or 'anonymous'.  When you log in using the anonymous account, you'll be
  57. prompted for a password.  You should type your local login name as the
  58. password, especially when you upload (ie send files).  After doing so,
  59. you may retrieve all files found in public areas on the remote machine.  
  60. Doing this is commonly called 'using anonymous ftp' or 'doing some 
  61. anonymous ftp-ing'.
  62.  
  63. The ftp program gives you a prompt that looks like this:
  64.  
  65.         ftp>
  66.  
  67. At this prompt, you can type commands to connect to remote machines, upload
  68. and download files, etc.
  69.  
  70. If you're on a UNIX system, you may want to look at the 'GUI' Aminet
  71. frontend instead of using FTP. Just compile pub/aminet/misc/unix/adt.c
  72. from Aminet (ftp.wustl.edu) on your UNIX box.
  73.  
  74.  
  75. 2. FTP command List
  76. ===================
  77.  
  78. Here are some important commands you'll need within ftp.  In these examples,
  79. any words given inside angled brackets <like this> are like variables
  80. that stand for particular values.  For example, the command
  81.  
  82.             get <remote file name>
  83.  
  84. means you should type the word "get" followed by the name of a file that
  85. is on the remote machine.  An actual example would be:
  86.  
  87.             get SuperProgram.lha
  88.  
  89. Commands For Opening And Closing FTP Connections:
  90.  
  91.     open <site>
  92.  
  93.         Connects to a remote machine.  For valid sites, see below.
  94.  
  95.     close
  96.         Closes connection to the remote site
  97.  
  98.     bye
  99.         Quits FTP.
  100.  
  101.     quit
  102.         Same as bye.
  103.  
  104. Commands For Setting The Transfer Mode
  105.         
  106.     bin
  107.  
  108.         Sets the connection to binary mode for transferring non-text
  109.         files, such as "lha", "lzh", "zoo", "arc", "dms", "zom", "Z"
  110.         (compressed), "gz", "tar", and other archives.  See the
  111.         "Archivers" section below.
  112.  
  113.     asc
  114.         Sets the connection to text (ASCII) mode for transferring
  115.         text files.
  116.  
  117.     It is OK to transfer text files in "bin" mode.  However, it is
  118.     WRONG to transfer binary files in "asc" mode -- they will get all
  119.     messed up.  So to be safe, you can just type "bin" at the beginning
  120.     of each ftp session and leave it that way. 
  121.  
  122. Commands For Downloading (Getting, Receiving) Files:
  123.  
  124.     get <remote file name>
  125.  
  126.         Receives the named remote file.  This command cannot
  127.         transfer multiple files at a time; for that, see "mget".
  128.  
  129.         If you specify a second argument, it will be used as the
  130.         name for the local file.  (By default, the local file has
  131.         the same name as the remote file.)
  132.  
  133.     mget <remote file 1> <remote file 2> ...
  134.  
  135.         Receives all the above remote files with a single command.
  136.  
  137.     mget <pattern>
  138.  
  139.         Receives all the remote files whose names match <pattern>.
  140.         Patterns may include the symbols
  141.  
  142.             *    stands for any sequence of characters
  143.             ?    stands for any 1 character
  144.  
  145.         For example, if you wanted to download all files that
  146.         begin with "B" and end with ".lzh", type:
  147.  
  148.             mget B*.lzh
  149.  
  150.         To download all files whose names are exactly 4 characters
  151.         long, type:
  152.  
  153.             mget ????
  154.  
  155.         You will be prompted before each file is downloaded.
  156.         To turn off this prompting, see the "prompt" command below.
  157.  
  158. Commands For Uploading (Putting, Sending) Files
  159.  
  160.     put <local file name>
  161.  
  162.         Transmits the local file to the remote machine.
  163.         This works for only one file at a time, similarly to the
  164.         way "get" works.
  165.  
  166.         If you specify a second argument, it will be used as the
  167.         name for the remote file.  (By default, the remote file has
  168.         the same name as the local file.)
  169.  
  170.     mput <local file 1> <local file 2> ...etc.
  171.  
  172.         Transmits all the above local files to the remote machine
  173.         with a single command.
  174.  
  175.     mput <pattern>
  176.  
  177.         Transmits all local files whose names match the given
  178.         pattern.  See the "mget" command, above, for information
  179.         about patterns.
  180.  
  181. Additional Commands For Uploading And Downloading
  182.  
  183.     prompt
  184.  
  185.         Normally, mget and mput will prompt you before transferring
  186.         each file.  If you don't like this, the 'prompt' command
  187.         toggles the prompting on and off.
  188.  
  189.     hash
  190.  
  191.         Normally, files are downloaded silently.  Typing the 'hash'
  192.         command will cause a 'hash mark' to be printed every so
  193.         often, indicating how much downloading has completed so far.
  194.         Typing this command again toggles the hash marks on and off.
  195.  
  196. Commands For Exploring The Local And Remote Machines
  197.  
  198.     Files on the remote machine (and probably your local machine too)
  199.     are organized in directories.  Here is how to navigate those
  200.     directories and view their contents.
  201.  
  202.     dir <pattern>
  203.  
  204.         Lists files in the current directory of the remote machine.
  205.         See "mget", above, for information about patterns.
  206.  
  207.     ls <pattern>
  208.  
  209.         Same as "dir", but list the files in a short format.
  210.  
  211.     cd <directory name>
  212.  
  213.         Changes your current directory on the remote machine.
  214.  
  215.     lcd <directory name>
  216.  
  217.         Changes your current directory on the local machine
  218.  
  219.     mkdir <directory name>
  220.  
  221.         Creates a new directory on the remote machine.  This will
  222.         not work if you do not have permission to do it on the
  223.         remote machine.
  224.  
  225. Some Special And Helpful Functions
  226.  
  227. o    There are some special arguments you can add to the 'get' command.
  228.     If you type:
  229.  
  230.             get myfile -
  231.  
  232.     then file 'myfile' will be displayed on your screen instead of
  233.     downloaded.  If you would like this file to be displayed one
  234.     screen at a time, pausing after each screenful, type
  235.  
  236.             get myfile |more
  237.  
  238.     [NOTE -- NO SPACE BETWEEN THE '|' and 'more'].  This latter command
  239.     may not work on all remote machines.
  240.  
  241. o    Also note that the ls and dir commands take only one argument.  This
  242.     can be either an option or a pattern, BUT NOT BOTH.  If you give a
  243.     second argument, this will be interpreted as a local filename, and
  244.     the directory listing will be stored in that local file instead of
  245.     displayed on your screen. Fix: If you have multiple arguments,
  246.         enclose them in double quotes.
  247.  
  248.  
  249. 3. Important Sites
  250. ==================
  251.  
  252. Location     Name                     IP Address      Path         Files
  253.                                                                         
  254. USA (MO)     ftp.wustl.edu            128.252.135.4   pub/aminet/    ALL
  255. USA (WI)     ftp.netnet.net           198.70.64.21    pub/aminet/    ALL
  256. USA (AZ)     ftp.ninemoons.com        165.247.33.6    pub/aminet/    ALL
  257. Australia    ftp.livewire.com.au      203.16.26.3     pub/aminet/    ALL
  258. Australia    ftp.tas.gov.au           147.109.237.5   pub/aminet/  20000
  259. Italy        ftp.unina.it             192.132.34.17   pub/aminet/    ALL
  260. Scandinavia  ftp.luth.se              130.240.18.2    pub/aminet/  25000
  261. Switzerland  ftp.eunet.ch             146.228.10.16   pub/aminet/  22000
  262. Germany      kelly.uni-paderborn.de   131.234.128.206 pub/aminet/    ALL
  263. Germany      ftp.uni-paderborn.de     131.234.2.42    pub/aminet/    ALL
  264. Germany      ftp.uni-erlangen.de      131.188.3.2     pub/aminet/  22000
  265. Germany      ftp.uni-stuttgart.de     129.69.18.15    cd  aminet   15000
  266. Germany      ftp.uni-siegen.de        141.99.128.1    pub/aminet/   7500
  267. Germany      ftp.cs.tu-berlin.de      130.149.17.7    pub/aminet/   6000
  268. Germany      ftp.uni-trier.de         136.199.8.81    pub/aminet/   4500
  269. Germany      ftp.tu-chemnitz.de       192.108.33.193  pub/aminet/   4000
  270. Germany      ftp.fh-augsburg.de       141.82.16.242   pub/aminet/   3000
  271. Germany      ftp.uni-oldenburg.de     134.106.40.9    pub/aminet/   2500
  272. Germany      ftp.uni-bremen.de        134.102.228.2   pub/aminet/   2000
  273. Germany      ftp.uni-kl.de            131.246.9.95    pub/aminet/   1500
  274. Germany      ftp.rz.uni-wuerzburg.de  132.187.1.2     pub/aminet/    700
  275. Austria      ftp.giga.or.at           131.130.12.58   pub/aminet/    500
  276. France       ftp.grolier.fr           194.51.174.67   pub/aminet/    ALL
  277. France       sunsite.cnam.fr          163.173.129.5   pub/aminet/   8000
  278. Denmark      sunsite.auc.dk           130.225.51.30   cd aminet     2000
  279. UK           sunsite.doc.ic.ac.uk     155.198.1.40    pub/aminet/    ALL
  280. UK           micros.hensa.ac.uk       148.88.8.84     pub/aminet/   8500
  281. Portugal     ftp.ua.pt                193.136.80.68   pub/aminet/   9000
  282. Spain        ftp.gui.uva.es           157.88.36.190   pub/aminet/   1000
  283.  
  284. The above group of sites together are called 'Aminet'.  They all contain the
  285. same files (through a process called 'mirroring'), although most of them
  286. delete older files.  Also, there are a some other Amiga FTP sites around, 
  287. and when make announcments about software on these sites, they usually give 
  288. the site address.
  289.  
  290. Finland      ftp.funet.fi            128.214.6.100   pub/amiga/
  291. USA          ftp.isca.uiowa.edu      128.255.21.233  amiga/fx
  292. USA          ftp.hawaii.edu          128.171.44.70   pub/amiga/fish
  293. Scandinavia  ftp.funet.fi            128.214.248.6   pub/amiga/fish
  294.  
  295. Both ftp.cso.uiuc.edu and grind.isca.uiowa.edu have a full collection of
  296. Fish Disks as their main feature.  Whenever I mention a program that is to
  297. be retrieved from a Fish disk, you can get it there.
  298.  
  299.  
  300.  
  301. 4. A Sample Session
  302. ===================
  303.  
  304. This is an example FTP session.  What you have to type is given in square
  305. brackets, on a line by itself, like this:
  306.  
  307.    [Here is something that you would type]
  308.  
  309. Everything else is displayed by the computer.  FTP output is often preceded
  310. by strange numbers like "220" and "150" -- you can ignore these.
  311. The example begins here.
  312.  
  313.    [ftp]
  314.  
  315. ftp> 
  316.      [open wuarchive.wustl.edu]
  317. Connected to wuarchive.wustl.edu.
  318. 220 amiga FTP server (Version 5.60.97 Wed Dec 9 22:23:21 MET 1992) ready.
  319. Name (amiga:umueller): 
  320.                        [ftp]
  321. 331 Guest login ok, send your userid as password.
  322. Password:
  323.           [kdalton]
  324. 230- Welcome to amiga.physik anonymous FTP server
  325. 230-      .....
  326. 230 Guest login ok, access restrictions apply.
  327. ftp> 
  328.      [cd pub/aminet]
  329. 250 CWD command successful.
  330. ftp> 
  331.      [get RECENT |more]
  332. 200 PORT command successful.
  333. 150 Opening ASCII mode data connection for RECENT (5676 bytes).
  334. | Recent uploads to wuarchive.wustl.edu [130.60.80.80] on 11-Dec-1992
  335. | The last 7 days' uploads, newest first. Blank line=new day, + = long .readme
  336. |
  337. |File                Dir        Size Description
  338. |------------------- ---        ---- -----------
  339. tiff2iff.lha         gfx/conv     7K Converts TIFF files to Amiga IFF
  340. DNetIRCpic.lzh       comm/net    16K Demo picture of DNet IRC
  341. DNetIRC.lha          comm/net    88K+IRC intuition DNet client (dnetlib.o neede
  342. ICoons_Nofp.lzh      gfx/3d     172K+Spline based object modeller (no 68881 nee
  343. 1993.lha             mods/u4ia  109K+ProTracker Module By U4ia called '1993'
  344. skick321.lha         os20/util   37K+Soft-kicker under OS 2.0 - new release
  345. monoxyde.dms         demo/mega  477K+MONOXYDE - new demo by Vanish
  346. baudbandit1.4b.lha   comm/misc   16K+Version 1.4b of baudbandit.device
  347. jed206b.lha          util/edit  144K+programmable, programmers editor. OS2.0+
  348. --More--
  349.          [q]
  350. 226 Transfer complete.
  351. local: |more remote: RECENT
  352. 5763 bytes received in 4.5 seconds (1.2 Kbytes/s)
  353. ftp> 
  354.      [cd game/think]
  355. 250 CWD command successful.
  356. ftp> 
  357.      [bin]
  358. 200 Type set to I.
  359. ftp> 
  360.      [get t-triz.lzh]
  361. 200 PORT command successful.
  362. 150 Opening BINARY mode data connection for t-triz.lzh (56496 bytes).
  363. 226 Transfer complete.
  364. local: t-triz.lzh remote: t-triz.lzh
  365. 56496 bytes received in 0.43 seconds (1.3e+02 Kbytes/s)
  366. ftp> 
  367.      [bye]
  368. 221 Goodbye.
  369.  
  370. This is the end of of the sample session.
  371.  
  372. If you're looking for something specific on that site, check the appropriate
  373. directory (using the 'cd' and 'ls' commands), or download the remote files
  374. 'INDEX', 'LOCAL' or 'ls-lR.Z'.  You can then use a program such as the UNIX
  375. 'grep' to search for filenames in them.  (Type 'man grep' in the UNIX shell
  376. to learn about grep).
  377.  
  378.  
  379. 5. The .netrc File
  380. ==================
  381.  
  382. If you put a file named .netrc in your home directory on the local machine,
  383. it will make your ftp life easier.  Just put into this file all information
  384. about how to log in at your favourite FTP site, and it'll be done
  385. automatically when you ftp to that site.
  386.  
  387. After you create the .netrc file, you have to 'chmod 600 .netrc' or it won't
  388. be accepted:
  389.  
  390.         cd
  391.         chmod 600 .netrc
  392.  
  393. Here's an example .netrc file to log onto the machine wuarchive.wustl.edu.
  394. It also defines a macro called 'init' that turns on binary mode and changes
  395. your remote directory to pub/aminet.  To use this macro after you are logged
  396. into the remote machine, just type
  397.  
  398.         $init
  399.  
  400. machine wuarchive.wustl.edu
  401. login ftp
  402. password kdalton
  403. macdef init
  404. bin
  405. cd pub/aminet
  406.  
  407.  
  408. Make sure you put a blank line after the last command, or else it won't work
  409. properly.  Also, remember to set the password to your login name.
  410.  
  411.  
  412. 6. Archivers
  413. ============
  414.  
  415. Most files on FTP sites store their files in archived (compressed) format.
  416. You can recognize the archiver used by the ending of the file name.  These
  417. are the most important ones:
  418.  
  419. Suffix  Archiver        Filename on Aminet
  420.  
  421. .lzh    LhA             LhA_e138.run
  422. .lha    LhA             LhA_e138.run
  423. .zoo    Zoo             zoo2-10.lzh
  424. .zip    Zip             unzip-4.1.lzh
  425. .dms    DMS             dms111.sfx
  426. .run    (LhA)           -
  427. .sfx    (LhA)           -
  428. .tar.Z  tar, compress   tar-compress.lzh
  429. .gz     GNU Zip         gzip124x.lha
  430.  
  431. The AmigaDOS versions of those archivers can be found on the AmiNet sites
  432. (see above) in the directory pub/aminet/util/arc, except for GNU Zip which
  433. is found in pub/aminet/util/pack.  To give you a start, LhA is also stored
  434. in self-extracting form (.run or .sfx).  Just execute it to extract it.
  435.  
  436. UNIX versions of most of these archivers are available.  You can get them
  437. from wuarchive.wustl.edu in the directory /pub/aminet/misc/unix/, or if
  438. they're not there, use archie (see below) to find them. The files names are:
  439.  
  440. LhA  lha-1.00.tar.Z  
  441. Zoo  zoo-2.10.tar.Z
  442. Zip  unzip41.tar.Z
  443. Dms  dmscheck.c.Z
  444.  
  445.  
  446. 7. The Archie Database
  447. ======================
  448.  
  449. There is a database of all files on all FTP sites worldwide, called 'archie'.
  450. They have a mailserver, a telnet service, and a client software.  Telnet to
  451. archie.sura.net and log in as 'archie', or send mail containing HELP in its
  452. body to archie@quiche.cs.mcgill.ca.  You'll get more information that way.
  453.  
  454.  
  455. 8. Mailservers
  456. ==============
  457.  
  458. Some sites allow sending them magic mail messages which cause them to FTP
  459. things from other sites, uuencode them, and send them to you.  Others only
  460. send the files stored locally at that site.  Here are the most important mail
  461. servers.  Send a mail containing HELP in its body to find out more about them
  462. (note that many German links are slow):
  463.  
  464. These Aminet sites offer binaries by email. (Mail servers only send you 
  465. files from that site while ftpmail services can connect to others)
  466.  
  467.   ftpmail@ftp.luth.se               (Keeps complete Aminet locally)
  468.   ftpmail@doc.ic.ac.uk              (Keeps complete Aminet locally)
  469.   ftpmail@ftp.uni-stuttgart.de
  470.   ftpmail@ftp.uni-trier.de
  471.   ftp-mailer@ftp.informatik.tu-muenchen.de
  472.   mail-server@ftp.cs.tu-berlin.de
  473.   mail-server@cs.tu-berlin.de
  474.  
  475. And here some other ftpmail services that you can use to connect to Aminet
  476. sites:
  477.  
  478.   ftpmail@decwrl.dec.com
  479.   ftpmail@ftp.sunet.se
  480.   ftpmail@ieunet.ie
  481.   ftpmail@archie.inesc.pt
  482.   ftpmail@ftp.Dartmouth.EDU
  483.   ftpmail@ftp.SHSU.edu
  484.   ftpmail@cs.uow.edu.au
  485.  
  486. 9. Transferring to Amiga
  487. ========================
  488.  
  489. VIA MODEM
  490.  
  491. After you have the files on your UNIX account, you need to get the files
  492. home.  Most Amiga terminal programs have one or more ways to transfer files
  493. to your Amiga.  Read your terminal program documentation for more
  494. information.
  495.  
  496. One recommended method is to use ZModem.  If your local machine has the
  497. 'sz' command, and your terminal program supports ZModem, you are set.
  498. To download the file 'whatever.lzh' to your Amiga, type:
  499.  
  500.         sz whatever.lzh
  501.  
  502. and then use your terminal program to receive it.  If your site does not
  503. have 'sz', you can get it from krynn.efd.lth.se in the file
  504. /pub/modem/rzsz9107.tar.Z.  Compile it, or use archie to find a version
  505. specific for your UNIX flavor.
  506.  
  507. In the worst case, you can turn on your terminal program's "screen capture"
  508. feature and type:
  509.  
  510.     uuencode <filename filename
  511.  
  512. to get your file typed to the screen in 'uuencoded' format.  On your Amiga,
  513. uudecode the file (using uudecode from Fish Disk 92).  Also, some sites
  514. still use 'kermit'. If you have a program of that name, you can use one of
  515. the Amiga kermit implementations found on Aminet to get files home.
  516.  
  517. VIA FLOPPY
  518.  
  519. If you don't have a modem, you can try to find a workstation with 3.5"
  520. floppy drive.  Sun 4 computers have them.  There you can either use the
  521. program mtools (try 'man mcopy') to store the files in MSDOS format and
  522. retrieve them using MSH (Fish Disk 382) or CrossDOS (included with AmigaDOS
  523. 2.1 and higher), or you use gnu tar (UNIX version to be found on
  524. decuac.dec.com, /pub/binaries/gnutar-1.10.tar.Z) to store files on the disk
  525. in .tar format using the command 'gtar cfvM /dev/rfd0c'.  Then you restore
  526. the files with gnu gtar (found on wuarchive.wustl.edu, in the file
  527. pub/aminet/util/gnu/gtar110.lzh) and the FLAT device (Fish Disk 535) and MSH
  528. (or any other PC format reading tool).  Mount FLAT:, and then enter 'gtar
  529. xfvM flat:MSH' or replace the MSH by the name of your emulation tools.
  530.  
  531. If a file is too large to fit on a floppy, you can use misc/unix/bsplit*
  532. from Aminet to split it, and c:join under AmigaDOS to put it back together.
  533.  
  534. Under MSDOS, you can use the command 'backup' to save files onto floppies
  535. and misc/emu/pcres250.lha from Aminet to restore the backups on the Amiga
  536. side. This method automatically splits large files.
  537.  
  538. If you'd like some additional info to be included in this FAQ, contact
  539. umueller@wuarchive.wustl.edu.  -Urban Mueller
  540.  
  541.  
  542.